#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
    class MainWindow;
}

class AbstractState;
class JSBridge;
class Context;

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(Context *context, JSBridge *bridge);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    Context* _context;
    JSBridge *_bridge;

public slots:
    void onMapReady();
    void addNewState(AbstractState *state);
    void populateJavaScriptWindowObject();

    void addPointToMap(float x, float y);

    void onPrintClicked();
    void onSaveClicked();
};

#endif // MAINWINDOW_H
